#if !defined(AFX_MYLISTBOX_H__E90E4255_B74A_496C_B4FC_867921C8E12C__INCLUDED_)
#define AFX_MYLISTBOX_H__E90E4255_B74A_496C_B4FC_867921C8E12C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyListBox.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyListBox window

class CMyListBox : public CListBox
{
public:
	typedef struct MyListItem
	{
		CString Text;
		HICON hIcon;
	} MyListItem;	
// Construction
public:
	CMyListBox();

// Attributes
public:

// Operations
public:
	void GetText(int nIndex, CString& rString);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyListBox)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	int AddItem(HICON hIcon, CString Text);
	virtual ~CMyListBox();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyListBox)
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYLISTBOX_H__E90E4255_B74A_496C_B4FC_867921C8E12C__INCLUDED_)
